import request from "@/utils/request";

// 获取地图数据
export const getBaseMap = (params: any) => {
  return request({
    url: "/screen/secondHouse/getBaseMap",
    method: "get",
    params: params,
  });
};

// 获取住宅地价指数统计
export const getHouseLandStatistics = (params: any) => {
  return request({
    url: "/screen/landSupply/getHouseLandStatistics",
    method: "post",
    data: params,
  });
};

// 1获取住宅地价指数走势/2获取住宅地价及同比增长率走势/3国有土地使用权收入额走势
export const getHouseLandTrend = (params: any) => {
  return request({
    url: "/screen/landSupply/getHouseLandTrend",
    method: "post",
    data: params,
  });
};

// 获取异常情况走势
export const getLandAbnormalTrend = (params: any) => {
  return request({
    url: "/screen/landSupply/getLandAbnormalTrend",
    method: "post",
    data: params,
  });
};

// 获取土地成交走势 = / 6-住宅用地交易统计/7-住宅交易异常原因统计
export const getLandDealTrend = (params: any) => {
  return request({
    url: "/screen/landSupply/getLandDealTrend",
    method: "post",
    data: params,
  });
};

// 获取土地成交情况统计 = 4-住宅用地交易统计/5-住宅交易异常原因统计
export const getLandDealStatistics = (params: any) => {
  return request({
    url: "/screen/landSupply/getLandDealStatistics",
    method: "post",
    data: params,
  });
};
